package cn.cena.order.domain;

import cn.cena.basic.domain.BaseDomain;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;


@Data
public class OrderPet extends BaseDomain {

    // 下单未支付
    public static final Integer STATE_ORDER_ONPAY = 0;

    // 下单用户取消订单
    public static final Integer STATE_USER_CANCEL = 1;

    //  下单超时取消订单
    public static final Integer STATE_EXPIRE_CANCEL = 2;

    // 支付失败
    public static final Integer STATE_PAY_FILED = 3;

    // 支付成功
    public static final Integer STATE_PAY_SUCCESS = 4;

    // 已发货
    public static final Integer STATE_SHIPPED = 5;

    // 已收货
    public static final Integer STATE_RECEIVED = 6;


    // 订单摘要
    private String digest;
    private Integer state;
    private BigDecimal totalPrice;
    private String orderSn;
    private Integer payWay;
    private Date createtime = new Date();
    private Date lastUpdateTime;
    // 超时时间
    private Date payExpireTime;
    private Long userId;

}
